"use strict";

const Service = require("egg").Service;

class ScoreService extends Service {
    async readList() {
        let sql = `
            select
            s.*, u.nickname
            from score as s
            join user as u on s.uid = u.id;
        `;
        let res = await this.app.mysql.query(sql);
        return res;
    }
}

module.exports = ScoreService;
